<?php
/**
* @package   havefnu
* @subpackage havefnuportal
* @author    FoxMaSk
* @copyright 2008 FoxMaSk
* @link      http://www.havefnu.com
* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
*/
class war_showZone extends jZone {
    protected $_tplname='war_show';

    protected function _prepareTpl(){
        $id_war = $this->param('id_war');
        if (!$id_war) return;
        
        $dao = jDao::get('havefnu~war');
        $war = $dao->get($id_war);
        
        $dao = jDao::get('havefnu~team');
        $team = $dao->get($war->id_team);
        
        $this->_tpl->assign('war',$war);
        $this->_tpl->assign('team',$team);
    }
}